package com.ling.service;

import com.ling.dao.AdminMapper;
import com.ling.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource//注入
    private AdminMapper Mapper;
    public void setAdminMapper(AdminMapper adminMapper) {
        this.Mapper = adminMapper;
    }

    public Admin adminLogin(String user,String pwd) {
        return Mapper.adminLogin(user, pwd);
    }
}
